const Router = require("@koa/router")
const {checkToken , mysecret} = require('../utils/verify')

const router = Router({
    prefix:'/user'
})

const userController = require('../controllers/userController')

router.post('/login',userController.login)
router.post('/register',userController.register)
router.post('/modify',userController.modify)
router.post('/delete',userController.delete)
router.post('/allMsg',checkToken,userController.allMsg)
router.post('/test',userController.test)
router.post('/updateUserPassword',userController.updateUserPassword)

module.exports = router.routes()